import request from '@/utils/request'

// /dictionaries/list
export function dictLists(params?: any) {
    return request.get({ url: '/common/dictionaries/list', params })
}

// /dictionaries/add
export function dictAdd(params: any) {
    return request.post({ url: '/common/dictionaries/add', params })
}

// /dictionaries/edit
export function dictEdit(params: any) {
    return request.post({ url: '/common/dictionaries/edit', params })
}

// /dictionaries/del
export function dictDelete(params: any) {
    return request.post({ url: '/common/dictionaries/del', params })
}

// /dictionaries/detail
export function dictDetail(params?: any) {
    return request.get({ url: '/common/dictionaries/detail', params })
}

// /dictionaries/types
export function dictTypes(params?: any) {
    return request.get({ url: '/common/dictionaries/types', params })
}

// /dictionaries/query
export function dictQuery(params?: any) {
    return request.get({ url: '/common/dictionaries/query', params })
}